package com.sdemo.modules.sys.mapper;

import java.util.List;
import java.util.Map;

import com.sdemo.modules.sys.model.User;
import com.sdemo.utils.MyMapper;
/**
 * @version V1.0
 * @date 2018年7月11日
 */
//@Mapper
public interface UserMapper extends MyMapper<User> {
 
    /**
     * 根据用户名查询用户
     * @param username
     * @return user
     */
    User selectByUsername(String username);
    
    User queryUserByUsername(String username);
    
    User queryUserById(Long userId);
    
    List<User> queryPageUser(Map<String,Object> parms);
    
    List<User> queryPageRole(Map<String,Object> parms);
    
    int queryCount(Map<String,Object> parms);
    
    int updateUser(User user);
    
    int deleteUser(Long userId);
    
    int insertUserByUsername(User user);
    
    int insertUserRoleBath(List<User> list);
    
    int deleteUserRole(Long userId);
    
    
}
